﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data.Common;

namespace blackhouse.Data {
    public class MsSqlAdoDataHelper : AdoDataHelper {

        #region Fields

        private string connectionString;

        #endregion

        #region Constructors

        public MsSqlAdoDataHelper(string sqlConnectionString) {
            this.connectionString = sqlConnectionString;
        }

        #endregion

        #region AdoDataHelper Members

        protected override DbConnection CreateConnection() {
            return new SqlConnection(this.connectionString);
        }

        protected override DbParameter CreateParameter() {
            return new SqlParameter();
        }

        protected override DbDataAdapter CreateDataAdapter() {
            return new SqlDataAdapter();
        }

        #endregion

	}
}
